package com.summer.web.v1.base.jmx.factory;

import javax.management.MalformedObjectNameException;
import javax.management.ObjectName;

public interface JolokiaMBeanRegister {

    RegisterParam register() throws MalformedObjectNameException;

    class RegisterParam<T> {

        T typeClass;

        ObjectName objectName;

        public T getTypeClass() {
            return typeClass;
        }

        public void setTypeClass(T typeClass) {
            this.typeClass = typeClass;
        }

        public ObjectName getObjectName() {
            return objectName;
        }

        public void setObjectName(ObjectName objectName) {
            this.objectName = objectName;
        }
    }

}
